home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / alsa / init / default < prev    next >
Text File  |  2009-10-20  |  7KB  |  178 lines

  1. #
  2. # Default ALSA volume levels and setting when initialization database fails.
  3. #
  4. # Basic rules are:
  5. #  - keep volumes at minimal level, but sound should be hearable
  6. #  - enable just main speakers for playback and main microphone for recording
  7. #
  8.  
  9. # **************************************************************************
  10. # playback
  11. # **************************************************************************
  12.  
  13. ENV{ppercent}:="75%"
  14. ENV{cpercent}:="75%"
  15. ENV{pvolume}:="-20dB"
  16. ENV{cvolume}:="12dB"
  17. ENV{has_pmaster_vol}:="false"
  18.  
  19. CTL{reset}="mixer"
  20. CTL{name}="Playback Volume",PROGRAM=="__ctl_search", \
  21.   CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
  22. CTL{name}="Playback Switch",PROGRAM=="__ctl_search", \
  23.   CTL{values}="on"
  24.  
  25. CTL{reset}="mixer"
  26. CTL{name}="Master Playback Volume",PROGRAM=="__ctl_search", \
  27.   ENV{has_pmaster_vol}:="true", \
  28.   CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
  29. CTL{name}="Master Playback Switch",PROGRAM=="__ctl_search", \
  30.   CTL{values}="on"
  31.  
  32. CTL{reset}="mixer"
  33. CTL{name}="Master Digital Playback Volume",PROGRAM=="__ctl_search", \
  34.   CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
  35. CTL{name}="Master Digital Playback Switch",PROGRAM=="__ctl_search", \
  36.   CTL{values}="on"
  37.  
  38. CTL{reset}="mixer"
  39. CTL{name}="Front Playback Volume",PROGRAM!="__ctl_search",GOTO="front0_end"
  40. # if master volume control is present, turn front volume to max
  41. ENV{has_pmaster_vol}=="true",CTL{values}="0dB",RESULT=="0",GOTO="front0_end"
  42. ENV{has_pmaster_vol}=="true",CTL{values)="100%",GOTO="front0_end"
  43. CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
  44. LABEL="front0_end"
  45. CTL{name}="Front Playback Switch",PROGRAM=="__ctl_search", \
  46.   CTL{values}="on"
  47.  
  48. CTL{reset}="mixer"
  49. CTL{name}="Headphone Playback Volume",PROGRAM=="__ctl_search",GOTO="headphone0_end"
  50. # if master volume control is present, turn headphone volume to max
  51. ENV{has_pmaster_vol}=="true",CTL{values}="0dB",RESULT=="0",GOTO="headphone0_end"
  52. ENV{has_pmaster_vol}=="true",CTL{values)="100%",GOTO="headphone0_end"
  53. CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
  54. LABEL="headphone0_end"
  55. CTL{name}="Headphone Playback Switch",PROGRAM=="__ctl_search", \
  56.   CTL{values}="on"
  57.  
  58. CTL{reset}="mixer"
  59. CTL{name}="Speaker Playback Volume",PROGRAM=="__ctl_search", \
  60.   CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
  61. CTL{name}="Speaker Playback Switch",PROGRAM=="__ctl_search", \
  62.   CTL{values}="on"
  63.  
  64. CTL{reset}="mixer"
  65. CTL{name}="PC Speaker Playback Volume",PROGRAM=="__ctl_search", \
  66.   CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
  67. CTL{name}="PC Speaker Playback Switch",PROGRAM=="__ctl_search", \
  68.   CTL{values}="on"
  69.  
  70. CTL{reset}="mixer"
  71. CTL{name}="PCM Playback Volume",PROGRAM!="__ctl_search",GOTO="pcm0_end"
  72. # if master volume control is present, turn PCM volume to max
  73. ENV{has_pmaster_vol}=="true",CTL{values}="0dB",RESULT=="0",GOTO="pcm0_end"
  74. ENV{has_pmaster_vol}=="true",CTL{values)="100%",GOTO="pcm0_end"
  75. # exception - some HDA codecs have shifted dB range
  76. CTL{dBmin}=="-34.50dB",CTL{dBmax}=="12.00dB",CTL{values}="0dB",GOTO="pcm0_end"
  77. CTL{dBmin}=="-30.00dB",CTL{dBmax}=="0dB",CTL{values}="0dB",GOTO="pcm0_end"
  78. CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="75%"
  79. LABEL="pcm0_end"
  80. CTL{name}="PCM Playback Switch",PROGRAM=="__ctl_search", \
  81.   CTL{values}="on"
  82.  
  83. CTL{reset}="mixer"
  84. CTL{name}="PCM Playback Volume",CTL{index}="1",PROGRAM!="__ctl_search", \
  85.   GOTO="pcm1_end"
  86. # if master volume control is present, turn PCM volume to max
  87. ENV{has_pmaster_vol}=="true",CTL{values}="0dB",RESULT=="0",GOTO="pcm1_end"
  88. ENV{has_pmaster_vol}=="true",CTL{values)="100%",GOTO="pcm1_end"
  89. # exception - some HDA codecs have shifted dB range
  90. CTL{dBmin}=="-34.50dB",CTL{dBmax}=="12.00dB",CTL{values}="0dB",GOTO="pcm1_end"
  91. CTL{dBmin}=="-30.00dB",CTL{dBmax}=="0dB",CTL{values}="0dB",GOTO="pcm1_end"
  92. CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="75%"
  93. LABEL="pcm1_end"
  94. CTL{name}="PCM Playback Switch",CTL{index}="1",PROGRAM=="__ctl_search", \
  95.   CTL{values}="on"
  96.  
  97. CTL{reset}="mixer"
  98. CTL{name}="DAC Playback Volume",PROGRAM=="__ctl_search", \
  99.   CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
  100. CTL{name}="DAC Playback Switch",PROGRAM=="__ctl_search", \
  101.   CTL{values}="on"
  102.  
  103. CTL{reset}="mixer"
  104. CTL{name}="Synth Playback Volume",,PROGRAM=="__ctl_search", \
  105.   CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
  106. CTL{name}="Synth Playback Switch",PROGRAM=="__ctl_search", \
  107.   CTL{values}="on"
  108.  
  109. CTL{reset}="mixer"
  110. CTL{name}="Wave Playback Volume",PROGRAM=="__ctl_search", \
  111.   CTL{values}="100%"
  112. CTL{name}="Wave Playback Switch",PROGRAM=="__ctl_search", \
  113.   CTL{values}="on"
  114.  
  115. CTL{reset}="mixer"
  116. CTL{name}="Music Playback Volume",PROGRAM=="__ctl_search", \
  117.   CTL{values}="100%"
  118. CTL{name}="Music Playback Switch",PROGRAM=="__ctl_search", \
  119.   CTL{values}="on"
  120.  
  121. CTL{reset}="mixer"
  122. CTL{name}="CD Playback Volume",PROGRAM!="__ctl_search", GOTO="cd0_end"
  123. # if master volume control is present, turn CD volume to max
  124. ENV{has_pmaster_vol}=="true",CTL{values}="0dB",RESULT=="0",GOTO="cd0_end"
  125. ENV{has_pmaster_vol}=="true",CTL{values)="100%",GOTO="cd0_end"
  126. # exception - some HDA codecs have shifted dB range
  127. CTL{dBmin}=="-34.50dB",CTL{dBmax}=="12.00dB",CTL{values}="0dB",GOTO="cd0_end"
  128. CTL{dBmin}=="-30.00dB",CTL{dBmax}=="0dB",CTL{values}="0dB",GOTO="cd0_end"
  129. CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
  130. LABEL="cd0_end"
  131. CTL{name}="CD Playback Switch",PROGRAM=="__ctl_search", \
  132.   CTL{values}="on"
  133.  
  134. CTL{reset}="mixer"
  135. CTL{name}="Mono Playback Volume",PROGRAM=="__ctl_search", \
  136.   CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
  137. CTL{name}="Mono Playback Switch",PROGRAM=="__ctl_search", \
  138.   CTL{values}="on"
  139.  
  140. CTL{reset}="mixer"
  141. CTL{name}="Master Mono Playback Volume",PROGRAM=="__ctl_search", \
  142.   CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
  143. CTL{name}="Master Mono Playback Switch",PROGRAM=="__ctl_search", \
  144.   CTL{values}="on"
  145.  
  146. CTL{reset}="mixer"
  147. CTL{name}="AC97 Playback Volume",PROGRAM=="__ctl_search", \
  148.   CTL{values}="100%"
  149. CTL{name}="AC97 Playback Switch",PROGRAM=="__ctl_search", \
  150.   CTL{values}="on"
  151.  
  152. #
  153. # Powermacs
  154. #
  155.  
  156. CTL{reset}="mixer"
  157. CTL{name}="DRC Range",PROGRAM=="__ctl_search", \
  158.   CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="$env{ppercent}"
  159.  
  160. # **************************************************************************
  161. # capture
  162. # **************************************************************************
  163.  
  164. CTL{reset}="mixer"
  165. CTL{name}="Capture Volume",PROGRAM=="__ctl_search", \
  166.   CTL{values}="$env{cvolume}",RESULT!="0",CTL{values}="$env{cpercent}"
  167. CTL{name}="Capture Switch",PROGRAM=="__ctl_search", \
  168.   CTL{values}="on"
  169.  
  170. CTL{name}="Input Source",PROGRAM!="__ctl_search", GOTO="end_input_source"
  171. CTL{enums}=="*|Internal Mic|*",CTL{values}="Internal Mic", \
  172.   GOTO="end_input_source"
  173. CTL{enums}=="*|Mic|*",CTL{values}="Mic"
  174. LABEL="end_input_source"
  175.  
  176. CTL{name}="Internal Mic Boost",PROGRAM=="__ctl_search", \
  177.   CTL{values}="on"
  178.